'''
Author: hanlaobo
Date: 2025-10-14 13:50:07
LastEditors: hlb
LastEditTime: 2025-10-14 13:50:14
FilePath: \runoob-test\example.py
'''
# def greet():
#     print("来自 example 模块的问候！")

# if __name__ == "__main__":
#     print("该脚本正在直接运行。",__name__)
#     greet()
# else:
#     print("该脚本作为模块被导入。",__name__)
    
data={
    'name':'张三',
    'age':18,
    'sex':'男'
}
key = input('请输入要查询的key：')
if key not in data:
    print('key不存在')
else:
    print('key存在',data[key],key)